package com.wushi.lenovo.asia5b.app_model.credit;

import android.text.TextUtils;

import com.mvp.base.model.BaseModel;

/**
 * Created by zhangyuncai on 2019/1/20.
 */
public class CreditMinModel extends BaseModel {
    /**
     * withdraw_minimum_value : 10
     * creditCard_minimum_value : 10
     * fpx_minimum_value : 10
     * fundTransfer_minimum_value : 10
     */

    private String withdraw_minimum_value;//提现最小值
    private String creditCard_minimum_value;//信用卡最小值
    private String fpx_minimum_value;//银行转账最小值
    private String fundTransfer_minimum_value;//转账最小值
    private String atm_onlineBanking_minimum_value;//ATM最小值

    public CreditMinModel() {
        withdraw_minimum_value="1";
        creditCard_minimum_value="1";
        fpx_minimum_value="1";
        fundTransfer_minimum_value="1";
        atm_onlineBanking_minimum_value="1";
    }

    public String getWithdraw_minimum_value() {
        if (TextUtils.isEmpty(withdraw_minimum_value)) {
            withdraw_minimum_value = "1";
        }
        return withdraw_minimum_value;
    }

    public String getCreditCard_minimum_value() {
        if (TextUtils.isEmpty(creditCard_minimum_value)) {
            creditCard_minimum_value = "1";
        }
        return creditCard_minimum_value;
    }

    public String getFpx_minimum_value() {
        if (TextUtils.isEmpty(fpx_minimum_value)) {
            fpx_minimum_value = "1";
        }
        return fpx_minimum_value;
    }

    public String getFundTransfer_minimum_value() {
        if (TextUtils.isEmpty(fundTransfer_minimum_value)) {
            fundTransfer_minimum_value = "1";
        }
        return fundTransfer_minimum_value;
    }

    public String getAtm_onlineBanking_minimum_value() {
        if (TextUtils.isEmpty(atm_onlineBanking_minimum_value)) {
            atm_onlineBanking_minimum_value = "1";
        }
        return atm_onlineBanking_minimum_value;
    }

    public float getWithdraw_minimum_valueF() {
        return parseFloat(withdraw_minimum_value);
    }

    public float getCreditCard_minimum_valueF() {
        return parseFloat(creditCard_minimum_value);
    }

    public float getFpx_minimum_valueF() {
        return parseFloat(fpx_minimum_value);
    }

    public float getFundTransfer_minimum_valueF() {
        return parseFloat(fundTransfer_minimum_value);
    }

    public float getAtm_onlineBanking_minimum_valueF() {
        return parseFloat(atm_onlineBanking_minimum_value);
    }

}
